package phasebook.client.msgs;

import java.io.Serializable;
import java.util.Date;

public class MessageInfo implements Serializable{
	private static final long serialVersionUID = 5407755304571724810L;

	private long messaegId;
	private UserInfo publisher;
	private UserInfo boardOwner;
	private String messageText;
	private Date timestamp;
	private PhotoInfo photo;
	private boolean isPrivate;
	
	public MessageInfo(){
	}
	
	public MessageInfo(long messaegId, UserInfo publisher, UserInfo boardOwner, String messageText,
			Date timestamp, PhotoInfo photo, boolean isPrivate) {
		this.messaegId = messaegId;
		this.publisher = publisher;
		this.boardOwner = boardOwner;
		this.messageText = messageText;
		this.timestamp = timestamp;
		this.photo = photo;
		this.isPrivate = isPrivate;
	}

	public long getMessaegId() {
		return messaegId;
	}

	public void setMessaegId(long messaegId) {
		this.messaegId = messaegId;
	}

	public UserInfo getPublisher() {
		return publisher;
	}

	public void setPublisher(UserInfo publisher) {
		this.publisher = publisher;
	}

	public UserInfo getBoardOwner() {
		return boardOwner;
	}

	public void setBoardOwner(UserInfo boardOwner) {
		this.boardOwner = boardOwner;
	}

	public String getMessageText() {
		return messageText;
	}

	public void setMessageText(String messageText) {
		this.messageText = messageText;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public PhotoInfo getPhoto() {
		return photo;
	}

	public void setPhoto(PhotoInfo photo) {
		this.photo = photo;
	}

	public boolean isPrivate() {
		return isPrivate;
	}

	public void setPrivate(boolean isPrivate) {
		this.isPrivate = isPrivate;
	}
	
}
